package cn.zhaozhiqi.article.mapper;

import cn.zhaozhiqi.article.domain.Article;
import cn.zhaozhiqi.article.query.ArticleQuery;

import java.util.List;

public interface ArticleMapper {

    Article getByID(Long id);



    void addData(Article article);

    void updateByID(Article article);

    void deleteByID(Long id);

    List<Article> getSearchList(ArticleQuery query);

    void batchdelete(List<Long> ids);


    List<Article> getAll();

}
